package com.robam.cloud.log.annotation;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OperationLogRecord {
    String describe() default "";

    String modularCode() default "";

    OperationLogRecord.OperationLevel operationLevel() default OperationLogRecord.OperationLevel.OTHER;

    public static enum OperationLevel {
        ADD,
        UPDATE,
        DELETE,
        QUERY,
        OTHER,
        LOGIN,
        THIRDAPI;

        private OperationLevel() {
        }
    }
}
